#define _CRT_SECURE_NO_WARNINGS  1
#include<iostream>

using namespace std;

int main()
{
	string s("Hello World!");
	string s1("Hello World!");
	for (size_t i = 0; i < s.size(); i++)
	{
		cout << s[i] << ' ';
	}
	cout << endl;
	string::reverse_iterator cu = s1.rbegin();
	while(cu !=  s1.rend())
	{
		*cu += 2;
		cout << *cu;
		++cu;
	}
	cout << endl;
	cout << s1 << endl;

	for (auto& e : s1)
	{
		e -= 2;
		cout << e << "  ";
	}
	cout<<endl;
	cout << s1 << endl;



	//int* p = new int(12);
	//cout << *p << endl;
	//delete p;
	//int* p1 = new int[4] {1, 2, 3, 4};
	//for (int i = 0; i < 4; i++)
	//{
	//	printf("%d ", p1[i]);
	//}
	////for(auto ch:)

	//delete[]p1;

	//char* p2 = new char[5] {"wqdf"};
	//printf("%s", p2);
	//delete[] p2;


	//auto arr[5] = { 1,2,3,3,4 };

	//string s("ferfrgergergergergff");
	//while (std::iterator cu:s)
	//{

	//}




	return 0;
}